package edu.tgc.web.form.bt;

import java.util.Date;
import java.util.UUID;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.abyss.common.web.form.easyui.CommonEasyuiWebForm;
import org.springframework.format.annotation.DateTimeFormat;

import edu.tgc.entity.system.SysUser;

public class OvertimeForm extends CommonEasyuiWebForm<UUID> {
	 // 加班费用
    private Double amount;
    // 加班事由
    private String cause;
    // 创建日期
    //private Date createTime;
    private SysUser creator;
    // 起始时间
     private Date startTime;
    // 结束时间
     private Date endTime;
     //审核意见
     private String conclusion;
    // 加班时长
    //private Integer duration;
    //private String memebers;
    // 状态0:未审核；1：已签批；2：已完成；
    private Integer otState;

    public Double getAmount() {
        return this.amount;
    }

    public String getCause() {
        return this.cause;
    }

    // 加班人
    // private List<String> members;
  	/*@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return this.createTime;
    }*/

    public SysUser getCreator() {
        return this.creator;
    }

    public Integer getOtState() {
        return this.otState;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    /*public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }*/

    public void setCreator(SysUser creator) {
        this.creator = creator;
    }

    public void setOtState(Integer otState) {
        this.otState = otState;
    }
    
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getConclusion() {
		return conclusion;
	}

	public void setConclusion(String conclusion) {
		this.conclusion = conclusion;
	}    

}
